package com.hmsm.sys.service;

import java.util.List;

import com.hmsm.sys.bean.LocalUser;

public interface IUserService<T extends LocalUser> {

	public T getById(Integer id);
	
	public T update(T entity) throws Exception;

	public T update(T userInfo, String string) throws Exception;

	public T save(T entity) throws Exception;
	
	public boolean delete(T entity) throws Exception;

	public T getNew();

	/**
	 * 合并重复用户
	 * @param list
	 * @param userInfo
	 * @throws Exception
	 */
	public T merge(List<T> list, T userInfo) throws Exception;

	public T getForSetRoles(T entity) throws Exception;
	
}
